<%@codepage="65001"%>
<%session.codepage="65001"%>
<!-- #include virtual=/inc/dbConn.asp -->
<!-- #include virtual=/inc/function.asp -->
<%
	xMode = Request("xMode")	
	version = Request("v")
	showSubMenu = "10"
	
	'## ■■ 통계년도 가져오기 ■■■■
	stdYearSQL = "SELECT lotYear FROM tblOrder GROUP BY lotYear ORDER BY lotYear DESC" 

	Set stdYearRs=Server.CreateObject("ADODB.RecordSet")
	stdYearRs.open stdYearSQL, DbCon, 1
	
	stdYearOption = ""
	If stdYearRs.eof Or stdYearRs.bof Then 
	Else 
		Do Until stdYearRs.eof Or stdYearRs.bof
		
		stdYearOption = stdYearOption & "<option value=""20" & stdYearRs("lotYear") & """>20" & stdYearRs("lotYear") & "</option>" & vbcrlf

		stdYearRs.movenext
		Loop 
	End If
	
%>
<!-- #include virtual=/inc/header.inc.asp -->  

<script language="javascript">
	var G_version = "";
	function fnSetGraph(code)
	{
		parent.frmGraph.type.value = $("#findType").val();
		parent.frmGraph.year.value = $("#findYear").val();
		parent.frmGraph.field.value = $("#findField").val();
		parent.frmGraph.section.value = $("#findSection").val();
		parent.frmGraph.code.value =code;
		parent.fnDrawGraph();
	}
	
	$(window).load(function(){
		setMainMenu();
		fnNewGrid01();
		intervalNotice();	
	}); 
</script>

<BODY topmargin="0" leftmargin="0">
<!-- #include virtual=/inc/menu.inc.asp -->  

<% 	If version = "" Then %>
<style>
	.cellHead { float:left; width:80px; height:25px; border-left:1px #abccf8 solid; border-top:1px #abccf8 solid; border-bottom:1px #abccf8 solid; text-align:center; padding-top:5px; font-weight:bold;  background-image:url('/inc/layout/panel-title-light-bg.gif'); margin-bottom:2px; }
	.cellHeadLast { float:left; width:115px; height:25px; border-left:1px #abccf8 solid; border-top:1px #abccf8 solid; border-bottom:1px #abccf8 solid; border-right:1px #abccf8 solid; text-align:center; padding-top:5px; font-weight:bold; background-image:url('/inc/layout/panel-title-light-bg.gif'); margin-bottom:2px; }
	.cellBody { float:left; width:70px; height:25px; border-right:1px #abccf8 solid; border-bottom:1px #abccf8 solid; padding:5px 5px 0 5px; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; text-align:right; }
	.cellBodyLast { float:left; width:88px; height:25px; border-bottom:1px #abccf8 solid; border-right:1px #abccf8 solid;  padding:5px 5px 0 5px; background-color:#ececff;text-overflow: ellipsis; white-space: nowrap; overflow: hidden; text-align:right; font-weight:bold}
</style>
<script>
	G_version = "9";
</script>
<%	Else	%>
<style>
	.cellHead { float:left; width:81px; height:25px; border-left:1px #abccf8 solid; border-top:1px #abccf8 solid; border-bottom:1px #abccf8 solid; text-align:center; padding-top:5px; font-weight:bold;  background-image:url('/inc/layout/panel-title-light-bg.gif'); margin-bottom:2px; }
	.cellHeadLast { float:left; width:118px; height:25px; border-left:1px #abccf8 solid; border-top:1px #abccf8 solid; border-bottom:1px #abccf8 solid; border-right:1px #abccf8 solid; text-align:center; padding-top:5px; font-weight:bold; background-image:url('/inc/layout/panel-title-light-bg.gif'); margin-bottom:2px; }
	.cellBody { float:left; width:81px; height:25px; border-right:1px #abccf8 solid; border-bottom:1px #abccf8 solid; padding:5px 5px 0 5px; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; text-align:right; }
	.cellBodyLast { float:left; width:88px; height:25px; border-bottom:1px #abccf8 solid; border-right:1px #abccf8 solid;  padding:5px 5px 0 5px; background-color:#ececff;text-overflow: ellipsis; white-space: nowrap; overflow: hidden; text-align:right; font-weight:bold}
</style>
<script>
	G_version = "8";
</script>
<%	End If	%>

<!-- 검색 영역 시작 -->
<div style="text-align:left;margin-top:10px;">
<table border="0" cellpadding="0" cellspacing="0" width="1242">
	<tr>
		<td width="210">
			<table border="0" cellpadding="0" cellspacing="0" width="200" style="margin-left:5px" id="orderSubMenu">
				<tr>
					<td width="33%" class="lTD_trbl" onclick="parent.fnGoPage('dashBoard.asp')" style="height:26px;text-align:center; background-color:#eaf2fd;CURSOR:hand;">일정</td>
					<td width="34%" class="lTD_trb0" onclick="parent.fnGoPage('board.asp')" style="height:26px;text-align:center;background-color:#eaf2fd;CURSOR:hand;">게시판</td>
					<td width="33%" class="lTD_trb0" onclick= "parent.fnGoPage('graph.asp')"  style="height:26px;text-align:center;font-weight:bold;background-color:#eaf2fd;CURSOR:hand;BORDER-TOP: #ff3300 5px solid;">통계</td>
				</tr>
			</table>
		</td>
		<td align="right">
			<table border="0" cellpadding="0" cellspacing="0" width="1022">
				<tr>
					<td width="100%" class="lTD_trbl" style="height:26px;padding-left:10px;color:#6600ff; background-color:#eaf2fd;" id="topNotice">&nbsp;</td>
				</tr>
			</table>
		</td>
	</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="1237" style="margin-left:5px"><tr><td style="height:5px"></td></tr></table>
<!--
<table border="0" cellpadding="0" cellspacing="0" width="1237" style="margin-left:5px">
	<tr>
		<td width="100%" valign="top" style="height:20px;text-align:right;padding-right:10px">
			[<span id="prevMonthBad">0</span> / <span id="curMonthBad" style="font-size:15px;font-weight:bold;color:#FF0000">0</span>] | [<a title="<%=bfWeekStart%>~<%=bfWeekEnd%>"><%=bfWeekBadRateTxt%></a> / <a title="<%=curWeekStart%>~<%=curWeekEnd%>"><%=curWeekBadRateTxt%></a>]
		</td>
	</tr>
</table>
-->
<table border="0" cellpadding="0" cellspacing="0" width="1237" style="margin-left:5px;">
	<tr height="40">
		<td style="padding: 0px 0 0px 10px;background-image:url(/inc/layout/panel-title-light-bg.gif);font-weight:bold;text-align:left" width="100%" class="lTD_trbl">
			기준월 <select id="findYear"><%=stdYearOption%></select> &nbsp;
			공 정 <select id="findType">
				<option value="10">가공</option>
				<option value="20">검사</option>
				<option value="90">포장</option>
				<option value="98">출하</option>
			</select>&nbsp;
			<select id="findField">
				<option value="prdGrp">그룹</option>
				<option value="prdNm">품목</option>
			</select>&nbsp;
			<select id="findSection">
				<option value="prdGrp">양품수</option>
				<option value="badRate">불량율</option>
			</select>&nbsp;

			<input type="button" onClick="fnNewGrid01()" value="검 색" class="inputBtn">&nbsp;
		</td>
	</tr>
</table>
</div>
<!-- 검색 영역 끝 -->
<table border="0" cellpadding="0" cellspacing="0" width="1237" style="margin-left:5px"><tr><td style="height:5px"></td></tr></table>
<!-- 그리드 시작 -->
<div style="text-align:left">
<table border="0" cellpadding="0" cellspacing="0" width="1235" style="margin-left:5px;text-align:left">
	<tr>
		<td width="100%" class="lTD_trbl" style="padding: 5px 3px 5px 2px;">
			<div id="Titles" style="width:1230px;border-bottom:1px #abccf8 solid;" class="cellHeadLast">
			</div>
			<div style="width:1230px;">
				<div class="cellHead" style="width:140px;">품목</div>
				<div class="cellHead">1월</div>
				<div class="cellHead">2월</div>
				<div class="cellHead">3월</div>
				<div class="cellHead">4월</div>
				<div class="cellHead">5월</div>
				<div class="cellHead">6월</div>
				<div class="cellHead">7월</div>
				<div class="cellHead">8월</div>
				<div class="cellHead">9월</div>
				<div class="cellHead">10월</div>
				<div class="cellHead">11월</div>
				<div class="cellHead">12월</div>
				<div class="cellHeadLast">계</div>
			</div>
			<!--
			<div id="gridBody" style="width:1225px;border-top:1px #abccf8 solid;border-bottom:1px #abccf8 solid;border-left:1px #abccf8 solid;height:120px;overflow-y:scroll">
			-->
			<div id="gridBody" style="width:1230px;border:1px #abccf8 solid;;height:160px;overflow-y:scroll">
			</div>
		</td>
	</tr>
</table>
</div>
<!-- 그리그 끝 -->
<div id="noticeContents" style="display:none;position:absolute;width:470px;background-color:#feecd3;border:#ff6600 1px solid;padding:10px 10px 10px 10px; z-index:2">
	<table cellpadding="0" cellspacing="0" border="0" width="450">
		<tr>
			<td style="font-weight:bold;height:40px"> &nbsp; [공지사항] <span id="vTitles"></span></td>
		</tr>
			<td style="text-align:center"><textarea id="contents" class="inputBox" style="width:440px; height:200px" readonly="readonly"></textarea></td>
		</tr>
		<tr>
			<td colspan="2" width="100%" style="text-align:right;height:28px;padding-right:8px;"><input type="button" onClick="fnLayerClose('noticeContents')" value="닫기" class="inputBtn"></td>
		</tr>
	</table>
</div>

</BODY>
</HTML>